<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/5/12
 * Time: 11:07
 */

namespace HiCommon\Model;


class ActivityPush extends Base
{

    protected $table = 'activity_push';

    protected $guarded = [];



    /**
     *  关联活动信息
     *  hinq 2019 09 11
     *
     **/
    public function activity(){
        return $this->belongsTo(Activity::class,'activity_id')->select(['id','title','img','repairstore_id','start_time','over_time']);
    }

    /**
     *  关联信息
     *  hinq 2019 09 05
     *
     **/
    public function shop(){
        return $this->belongsTo(Shop::class,'repairstore_id')->select('id','name','logo');
    }
}